package org.edu.modules.center.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

@TableName("ve_study_note")
@ApiModel(value="ve_study_note对象", description="学生写笔记")
public class VeStudyNote
        implements Serializable
{
    private static final long serialVersionUID = 1L;
    @TableId(type=IdType.AUTO)
    @ApiModelProperty("主键ID，自增长")
    private Integer id;
    @ApiModelProperty("教学活动ID")
    private Integer tcid;
    @ApiModelProperty("课程ID")
    private Integer courseid;
    @ApiModelProperty("章节ID")
    private Integer nodeid;
    @ApiModelProperty("笔记内容")
    private String content;
    @ApiModelProperty("是否共享（0=否，1=是）")
    private Integer isshared;
    @ApiModelProperty("添加人,传0时为当前用户ID")
    private Integer adduser;
    @ApiModelProperty("添加时间")
    private Integer addtime;
    @ApiModelProperty("终端ID")
    private Integer terminalid;
    @ApiModelProperty("多租户id")
    private Integer placeId;

    public VeStudyNote setCourseid(Integer courseid)
    {
        this.courseid = courseid;return this;
    }

    public VeStudyNote setTcid(Integer tcid)
    {
        this.tcid = tcid;return this;
    }

    public VeStudyNote setId(Integer id)
    {
        this.id = id;return this;
    }

    public String toString()
    {
        return "VeStudyNote(id=" + getId() + ", tcid=" + getTcid() + ", courseid=" + getCourseid() + ", nodeid=" + getNodeid() + ", content=" + getContent() + ", isshared=" + getIsshared() + ", adduser=" + getAdduser() + ", addtime=" + getAddtime() + ", terminalid=" + getTerminalid() + ", placeId=" + getPlaceId() + ")";
    }

    public VeStudyNote setPlaceId(Integer placeId)
    {
        this.placeId = placeId;return this;
    }

    public VeStudyNote setTerminalid(Integer terminalid)
    {
        this.terminalid = terminalid;return this;
    }

    public VeStudyNote setAddtime(Integer addtime)
    {
        this.addtime = addtime;return this;
    }

    public VeStudyNote setAdduser(Integer adduser)
    {
        this.adduser = adduser;return this;
    }

    public VeStudyNote setIsshared(Integer isshared)
    {
        this.isshared = isshared;return this;
    }

    public VeStudyNote setContent(String content)
    {
        this.content = content;return this;
    }

    public VeStudyNote setNodeid(Integer nodeid)
    {
        this.nodeid = nodeid;return this;
    }

    public int hashCode()
    {
        int PRIME = 59;int result = 1;Object $id = getId();result = result * 59 + ($id == null ? 43 : $id.hashCode());Object $tcid = getTcid();result = result * 59 + ($tcid == null ? 43 : $tcid.hashCode());Object $courseid = getCourseid();result = result * 59 + ($courseid == null ? 43 : $courseid.hashCode());Object $nodeid = getNodeid();result = result * 59 + ($nodeid == null ? 43 : $nodeid.hashCode());Object $isshared = getIsshared();result = result * 59 + ($isshared == null ? 43 : $isshared.hashCode());Object $adduser = getAdduser();result = result * 59 + ($adduser == null ? 43 : $adduser.hashCode());Object $addtime = getAddtime();result = result * 59 + ($addtime == null ? 43 : $addtime.hashCode());Object $terminalid = getTerminalid();result = result * 59 + ($terminalid == null ? 43 : $terminalid.hashCode());Object $placeId = getPlaceId();result = result * 59 + ($placeId == null ? 43 : $placeId.hashCode());Object $content = getContent();result = result * 59 + ($content == null ? 43 : $content.hashCode());return result;
    }

    protected boolean canEqual(Object other)
    {
        return other instanceof VeStudyNote;
    }

    public boolean equals(Object o)
    {
        if (o == this) {
            return true;
        }
        if (!(o instanceof VeStudyNote)) {
            return false;
        }
        VeStudyNote other = (VeStudyNote)o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$id = getId();Object other$id = other.getId();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) {
            return false;
        }
        Object this$tcid = getTcid();Object other$tcid = other.getTcid();
        if (this$tcid == null ? other$tcid != null : !this$tcid.equals(other$tcid)) {
            return false;
        }
        Object this$courseid = getCourseid();Object other$courseid = other.getCourseid();
        if (this$courseid == null ? other$courseid != null : !this$courseid.equals(other$courseid)) {
            return false;
        }
        Object this$nodeid = getNodeid();Object other$nodeid = other.getNodeid();
        if (this$nodeid == null ? other$nodeid != null : !this$nodeid.equals(other$nodeid)) {
            return false;
        }
        Object this$isshared = getIsshared();Object other$isshared = other.getIsshared();
        if (this$isshared == null ? other$isshared != null : !this$isshared.equals(other$isshared)) {
            return false;
        }
        Object this$adduser = getAdduser();Object other$adduser = other.getAdduser();
        if (this$adduser == null ? other$adduser != null : !this$adduser.equals(other$adduser)) {
            return false;
        }
        Object this$addtime = getAddtime();Object other$addtime = other.getAddtime();
        if (this$addtime == null ? other$addtime != null : !this$addtime.equals(other$addtime)) {
            return false;
        }
        Object this$terminalid = getTerminalid();Object other$terminalid = other.getTerminalid();
        if (this$terminalid == null ? other$terminalid != null : !this$terminalid.equals(other$terminalid)) {
            return false;
        }
        Object this$placeId = getPlaceId();Object other$placeId = other.getPlaceId();
        if (this$placeId == null ? other$placeId != null : !this$placeId.equals(other$placeId)) {
            return false;
        }
        Object this$content = getContent();Object other$content = other.getContent();return this$content == null ? other$content == null : this$content.equals(other$content);
    }

    public Integer getId()
    {
        return this.id;
    }

    public Integer getTcid()
    {
        return this.tcid;
    }

    public Integer getCourseid()
    {
        return this.courseid;
    }

    public Integer getNodeid()
    {
        return this.nodeid;
    }

    public String getContent()
    {
        return this.content;
    }

    public Integer getIsshared()
    {
        return this.isshared;
    }

    public Integer getAdduser()
    {
        return this.adduser;
    }

    public Integer getAddtime()
    {
        return this.addtime;
    }

    public Integer getTerminalid()
    {
        return this.terminalid;
    }

    public Integer getPlaceId()
    {
        return this.placeId;
    }
}
